package com.aiwsport.core;

import org.apache.commons.httpclient.HttpStatus;

public class DrawServerExceptionFactor {

    public static final DrawServerExceptionFactor DEFAULT = new DrawServerExceptionFactor(
            HttpStatus.SC_INTERNAL_SERVER_ERROR, 10001,
            "system error", "系统错误");
    public static final DrawServerExceptionFactor INTERNAL_ERROR = new DrawServerExceptionFactor(
            HttpStatus.SC_INTERNAL_SERVER_ERROR, 10002,
            "internal server error", "内部错误");

    private int httpStatus;
    private int errorCode;
    private String errorMsg;
    private String errorMsgCN;

    public DrawServerExceptionFactor(int httpStatus, int errorCode, String errorMsg, String errorMsgCN) {
        this.httpStatus = httpStatus;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.errorMsgCN = errorMsgCN;
    }

    public int getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(int httpStatus) {
        this.httpStatus = httpStatus;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsgCN() {
        return errorMsgCN;
    }

    public void setErrorMsgCN(String errorMsgCN) {
        this.errorMsgCN = errorMsgCN;
    }
}
